<ui:component xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:a="http://richfaces.org/a4j" xmlns:r="http://richfaces.org/rich"
	xmlns:t="http://myfaces.apache.org/tomahawk">
	<f:view>
		<a:outputPanel id="panelErrorModalPanel" ajaxRendered="true">
			<!-- Диалог за визуализиране на грешки-->
			<r:modalPanel id="errorModalPanel" minWidth="500"
				rendered="#{error.showErrorDialog}" showWhenRendered="true"
				autosized="true">
				<f:facet name="header">
					<h:outputText value="Възникна следната грешка"
						style="padding-right:15px;" />
				</f:facet>
				<f:facet name="controls">
					<h:panelGroup>
						<h:graphicImage value="/css/images/close.png" alt="Close"
							title="Close" styleClass="hidelink" id="hidelinkerrorModalPanel" />
						<r:componentControl for="errorModalPanel"
							attachTo="hidelinkerrorModalPanel" operation="hide"
							event="onclick" />
					</h:panelGroup>
				</f:facet>
				<a:form id="formErrDialog">
					<r:panel>
						<h:panelGrid columns="2" width="95%">
							<h:graphicImage value="/css/images/error.png" alt="Error"
								id="imgErr">
								<r:componentControl for="errorModalPanel" attachTo="imgErr"
									operation="hide" event="onclick" />
							</h:graphicImage>
							<r:messages infoClass="infoClass" errorClass="errorClass" />
						</h:panelGrid>
					</r:panel>
				</a:form>
			</r:modalPanel>
		</a:outputPanel>
	</f:view>
</ui:component>